
window.gameAction = {
    start: gameBegin,
    gameEnd: gameEnd,
    gameInit: gameInit
}

function gameBegin() {
    $('.score').show();
    $('.result').show();
    $('.game-ui').hide();
}


function gameEnd(score) {
    
     
}

function gameInit() {
    $('.game-ui').show();
    $('.game').hide();
    $('.score').hide();
    $('.container,.coin,#rank1,#rank2').hide();
}
var canHidePrompt = false;
function initHandle() {
    $('.tip_img_box').click(function () {
        if (canHidePrompt) {
            $('.tip_img_box').hide();
        }
    });
    if (window.innerHeight < window.innerWidth) {
        if (window.isPrompt) {
            $('.tip_img_box,.show_hengping').show();
        } else {
            $('.tip_img_box,.show_shuping').show();
        }
        canHidePrompt = false;
    }
   
}

